<?php
include '../connect/common_start.php';

if (isset($_REQUEST['mem_id'])) {
	$mem_id=$_REQUEST['mem_id'];
	if (isset($_REQUEST['mem_id_friend'])) {
		$mem_id_friend=$_REQUEST['mem_id_friend'];
		$sql="DELETE FROM friend WHERE (friend.mem_id='$mem_id' AND friend.mem_friend='$mem_id_friend') OR (friend.mem_id='$mem_id_friend' AND friend.mem_friend='$mem_id')";
		$result=mysql_query($sql);
		echo mysql_affected_rows();
	}
}
include '../connect/common_end.php';
?>